class TimeCategory
  include DataMapper::Resource
  storage_names[:default] = "TimeCategory"
  
  property :id,          Serial
  property :title,       String,        :required => true, :length => 500
  property :icon_url,    String,        :length => 500
  property :archived,    Boolean
  property :description, Text,          :lazy => false
  timestamps :at

  has n, :courses
end
